<?php if($providerCategory->num_rows() > 0):?>
<div class="control-group provider-category">
    <label class="control-label">供应商类别</label>
    <div class="controls">
        <select name="provider_category_id" class="m-wrap span8 required">
            <?php foreach ($providerCategory->result() as $item):?>
            <option value="<?php echo $item->id;?>"><?php echo $item->category_name;?></option>
            <?php endforeach;?>
        </select>
    </div>
</div>
<?php endif;?>
